import {$http} from "@/utils/request/requestConfig.js"

const api = {
	"route":"api/travel/travelling/list/{travelId}",
	"record":"api/travel/travelling/record/{travelAttractionsId}",
	"stop":"api/travel/travelling/stop/{travelId}"
}

export const travelingRoute = function(data){
	const route = api.route.replace(/{travelId}/,data)
	return $http.get(route)
}

export const recordSpot = function(data) {
	const record = api.record.replace(/{travelAttractionsId}/,data)
	return $http.get(record)
}


export const stopTravel = (data) => {
	const stop = api.stop.replace(/{travelId}/,data)
	return $http.get(stop,data)
}